function openNormalWindow(pageURL,name,width,height,isResize){
	var top=(window.screen.availHeight-height)/2;
	var left=(window.screen.availWidth-width)/2;
	
	if(!width){
		width=window.screen.availWidth-20;
		left=0;
	}
	if(!height){
		height=window.screen.availHeight-65;
		top=0;
	}
	if(!isResize){
		window.open(pageURL,name,'height='+height+', width='+width+',top='+top+', left='+left+',toolbar=no,scrollbars=yes,resizable=yes,location=no,status=yes');
	} else {
		window.open(pageURL,name,'height='+height+', width='+width+',top='+top+', left='+left+',toolbar=no,scrollbars=yes,resizable='+isResize+',location=no,status=yes');
	}
}

function openFlow(nodeLsh,flowLsh,flowcode,serialNO){
	// 省公司紧急更新申请流程、日常需求管理省公司流程，在处理待办后，如下个环节还是当前处理人则自动刷新可继续处理
	if(flowcode=='728159d6c0a86b440001419b6dc4a265'||flowcode=='2f1da7a1c0a86b4401a52f1338677e7d') {
		var windowHandler="w"+Math.round(Math.random()*10000);
		openNormalWindow("/pdemand/pdemandWorkOrder!viewFlow.do?serialNO="+serialNO,windowHandler);
	} else {
		var windowHandler="w"+Math.round(Math.random()*10000);
		openNormalWindow("/common/commonWorkOrder!open.do?nodeLsh="+nodeLsh+"&flowLsh="+flowLsh,windowHandler);
	}
}